source 'https://github.com/CocoaPods/Specs.git'
#source 'https://gitee.com/wonder_ios_sdk/WD_MediationSDK_Spec.git'

platform :ios, '13.0'
use_modular_headers!
workspace 'DualMediationDemo.xcworkspace'

target 'DualMediationDemo' do
  project 'DualMediationDemo.xcodeproj'
  
  pod 'AFNetworking', '~> 4.0.1'
  pod 'Masonry', '~> 1.1.0'
#  pod 'DualMediationSDK', '~> 1.0.0-beta.5'
  
  pod 'IronSourceSDK', '~> 8.10.0.0'
  pod 'IronSourceAdQualitySDK', '~> 7.25.1'
  
  pod 'IronSourceAppLovinAdapter', '4.3.52.0'
  pod 'IronSourceBidMachineAdapter', '4.3.20.0'
  pod 'IronSourceBigoAdapter', '4.3.5.0'
  pod 'IronSourceChartboostAdapter', '4.3.21.0'
  pod 'IronSourceCSJAdapter', '4.3.13.0'
  pod 'IronSourceAdMobAdapter', '4.3.68.0'
  pod 'IronSourceHyprMXAdapter', '4.3.10.0'
  pod 'IronSourceInMobiAdapter', '4.3.29.1'
  pod 'IronSourceVungleAdapter', '4.3.45.1'
  pod 'IronSourceMintegralAdapter', '4.3.35.1'
  pod 'IronSourceMobileFuseAdapter', '~> 4.3.8.1'
  pod 'IronSourceMolocoAdapter', '4.3.21.0'
  pod 'IronSourceOguryAdapter', '4.3.3.1'
  pod 'IronSourcePangleAdapter', '4.3.46.1'
  pod 'IronSourceSmaatoAdapter', '4.3.17.1'
  pod 'IronSourceUnityAdsAdapter', '4.3.52.1'
  pod 'IronSourceVerveAdapter', '4.3.6.1'
  pod 'IronSourceYandexAdapter', '4.3.22.1'
  pod 'IronSourceFyberAdapter', '~> 4.3.44.0'
  pod 'zMaticoo', '1.5.4.3'
  pod 'TaurusxAdsSDK', '1.6.0'
  pod 'TaurusxAdsSDK/IronSourceAdapter', '1.6.0'
  pod 'Bidon', '0.8.0'
  pod 'ISBidonCustomAdapter', '0.8.0'
  pod 'IronSourceFacebookAdapter', '4.3.51.0'
  pod 'IronSourcePubMaticAdapter', '~> 2.0.0'
  pod 'Google-Mobile-Ads-SDK', '~> 12.7.0'
  
  pod 'GoogleAdsOnDeviceConversion', '2.1.0'
  pod 'Adjust/AdjustGoogleOdm'
  
  pod 'AppLovinSDK', '13.1.0'
  
  pod 'AppLovinMediationBidMachineAdapter', '3.4.0.0.0'
  pod 'AppLovinMediationBigoAdsAdapter', '4.7.0.1'
  pod 'AppLovinMediationFyberAdapter', '~> 8.3.8.0'
  pod 'AppLovinMediationGoogleAdManagerAdapter', '12.7.0.0'
  pod 'AppLovinMediationGoogleAdapter', '12.7.0.0'
  pod 'AppLovinMediationIronSourceAdapter', '8.10.0.0.0'
  pod 'AppLovinMediationMintegralAdapter', '7.7.8.0.0'
  pod 'AppLovinMediationVungleAdapter', '7.5.1.0'
  pod 'AppLovinMediationMolocoAdapter', '3.11.0.0'
  pod 'AppLovinMediationByteDanceAdapter', '7.2.0.5.0'
  pod 'AppLovinMediationSmaatoAdapter', '22.9.3.0'
  pod 'AppLovinMediationUnityAdsAdapter', '4.15.0.0'
  pod 'AppLovinMediationYandexAdapter', '7.15.1.0'
  pod 'AppLovinMediationVerveAdapter', '3.6.0.0'
  pod 'AppLovinMediationHyprMXAdapter', '6.4.2.0.0'
  pod 'AppLovinMediationCSJAdapter', '6.7.1.6.0'
  pod 'AppLovinMediationInMobiAdapter', '10.8.3.0'
  pod 'AppLovinMediationOguryPresageAdapter', '5.0.2.0'
  pod 'AppLovinMediationMobileFuseAdapter', '~> 1.9.2.1'
  pod 'AppLovinMediationChartboostAdapter', '9.9.0.0'
  pod 'AppLovinMediationTopOnAdxAdapter', '6.4.28'
  pod 'Bidon', '0.8.0'
  pod 'AppLovinMediationBidonAdapter', '0.8.0'
  pod 'TaurusxAdsSDK', '1.6.0'
  pod 'TaurusxAdsSDK/AppLovinAdapter', '1.6.0'
  pod 'AppLovinMediationFacebookAdapter', '~> 6.20.1.0'
  pod 'AppLovinPubMaticAdapter', '~> 2.0.0'
  pod 'AppLovinMediationPubMaticAdapter', '~> 4.10.0.0'
  
  pod 'FBSDKCoreKit', '~> 18.0.0'
  pod 'FBSDKLoginKit', '~> 18.0.0'
  pod 'FBSDKShareKit', '~> 18.0.0'
  
  pod 'Firebase', '~> 11.15.0'
  pod 'Firebase/Analytics', '~> 11.15.0'
  pod 'Firebase/Messaging', '~> 11.15.0'
  pod 'Firebase/Crashlytics', '~> 11.15.0'
  pod 'Firebase/DynamicLinks', '~> 11.15.0'
  pod 'Firebase/Crashlytics', '~> 11.15.0'
  pod 'FirebaseRemoteConfig', '~> 11.15.0'
  pod 'GoogleUserMessagingPlatform', '~> 3.0.0'
  
  pod 'Adjust', '~> 5.4.6'
  
  pod 'ThinkingSDK', '~> 3.1.1'

  # Pods for DualMediation

  target 'DualMediationDemoTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'DualMediationDemoUITests' do
    # Pods for testing
  end
  
  target 'DualMediationSDK' do
    project 'DualMediationSDK/DualMediationSDK.xcodeproj'
    pod 'AFNetworking', '~> 4.0.1'
    
    
    pod 'IronSourceSDK', '~> 8.10.0.0'
    pod 'IronSourceAdQualitySDK', '~> 7.25.1'
    
    pod 'IronSourceAppLovinAdapter', '4.3.52.0'
    pod 'IronSourceBidMachineAdapter', '4.3.20.0'
    pod 'IronSourceBigoAdapter', '4.3.5.0'
    pod 'IronSourceChartboostAdapter', '4.3.21.0'
    pod 'IronSourceCSJAdapter', '4.3.13.0'
    pod 'IronSourceAdMobAdapter', '4.3.68.0'
    pod 'IronSourceHyprMXAdapter', '4.3.10.0'
    pod 'IronSourceInMobiAdapter', '4.3.29.1'
    pod 'IronSourceVungleAdapter', '4.3.45.1'
    pod 'IronSourceMintegralAdapter', '4.3.35.1'
    pod 'IronSourceMobileFuseAdapter', '~> 4.3.8.1'
    pod 'IronSourceMolocoAdapter', '4.3.21.0'
    pod 'IronSourceOguryAdapter', '4.3.3.1'
    pod 'IronSourcePangleAdapter', '4.3.46.1'
    pod 'IronSourceSmaatoAdapter', '4.3.17.1'
    pod 'IronSourceUnityAdsAdapter', '4.3.52.1'
    pod 'IronSourceVerveAdapter', '4.3.6.1'
    pod 'IronSourceYandexAdapter', '4.3.22.1'
    pod 'IronSourceFyberAdapter', '~> 4.3.44.0'
    pod 'zMaticoo', '1.5.4.3'
    pod 'TaurusxAdsSDK', '1.6.0'
    pod 'TaurusxAdsSDK/IronSourceAdapter', '1.6.0'
    pod 'Bidon', '0.8.0'
    pod 'ISBidonCustomAdapter', '0.8.0'
    pod 'IronSourceFacebookAdapter', '4.3.51.0'
    pod 'IronSourcePubMaticAdapter', '~> 2.0.0'

    pod 'AppLovinSDK', '13.1.0'
    
    pod 'AppLovinMediationBidMachineAdapter', '3.4.0.0.0'
    pod 'AppLovinMediationBigoAdsAdapter', '4.7.0.1'
    pod 'AppLovinMediationFyberAdapter', '~> 8.3.8.0'
    pod 'AppLovinMediationGoogleAdManagerAdapter', '12.7.0.0'
    pod 'AppLovinMediationGoogleAdapter', '12.7.0.0'
    pod 'AppLovinMediationIronSourceAdapter', '8.10.0.0.0'
    pod 'AppLovinMediationMintegralAdapter', '7.7.8.0.0'
    pod 'AppLovinMediationVungleAdapter', '7.5.1.0'
    pod 'AppLovinMediationMolocoAdapter', '3.11.0.0'
    pod 'AppLovinMediationByteDanceAdapter', '7.2.0.5.0'
    pod 'AppLovinMediationSmaatoAdapter', '22.9.3.0'
    pod 'AppLovinMediationUnityAdsAdapter', '4.15.0.0'
    pod 'AppLovinMediationYandexAdapter', '7.15.1.0'
    pod 'AppLovinMediationVerveAdapter', '3.6.0.0'
    pod 'AppLovinMediationHyprMXAdapter', '6.4.2.0.0'
    pod 'AppLovinMediationCSJAdapter', '6.7.1.6.0'
    pod 'AppLovinMediationInMobiAdapter', '10.8.3.0'
    pod 'AppLovinMediationOguryPresageAdapter', '5.0.2.0'
    pod 'AppLovinMediationMobileFuseAdapter', '~> 1.9.2.1'
    pod 'AppLovinMediationChartboostAdapter', '9.9.0.0'
    pod 'AppLovinMediationTopOnAdxAdapter', '6.4.28'
    pod 'Bidon', '0.8.0'
    pod 'AppLovinMediationBidonAdapter', '0.8.0'
    pod 'TaurusxAdsSDK', '1.6.0'
    pod 'TaurusxAdsSDK/AppLovinAdapter', '1.6.0'
    pod 'AppLovinMediationFacebookAdapter', '~> 6.20.1.0'
    pod 'AppLovinPubMaticAdapter', '~> 2.0.0'
    pod 'AppLovinMediationPubMaticAdapter', '~> 4.10.0.0'
    pod 'Google-Mobile-Ads-SDK', '~> 12.7.0'
    
    pod 'GoogleAdsOnDeviceConversion', '2.1.0'
    pod 'Adjust/AdjustGoogleOdm'
    
    pod 'FBSDKCoreKit', '~> 18.0.0'
    pod 'FBSDKLoginKit', '~> 18.0.0'
    pod 'FBSDKShareKit', '~> 18.0.0'
    
    
    pod 'Firebase', '~> 11.15.0'
    pod 'Firebase/Analytics', '~> 11.15.0'
    pod 'Firebase/Messaging', '~> 11.15.0'
    pod 'Firebase/Crashlytics', '~> 11.15.0'
    pod 'Firebase/DynamicLinks', '~> 11.15.0'
    pod 'Firebase/Crashlytics', '~> 11.15.0'
    pod 'FirebaseRemoteConfig', '~> 11.15.0'
    pod 'GoogleUserMessagingPlatform', '~> 3.0.0'
    
    pod 'Adjust', '~> 5.4.6'
    
    pod 'ThinkingSDK', '~> 3.1.1'
    
  end

end
post_install do |installer|
  # 需要处理的所有 target：Pods 工程 + 生成的子工程
  all_projects = [installer.pods_project] + Array(installer.generated_projects)

  all_projects.each do |project|
    project.targets.each do |target|
      target.build_configurations.each do |config|
        # 合并/追加 OTHER_LDFLAGS，保留已有值并确保包含 -ObjC
        flags = config.build_settings['OTHER_LDFLAGS'] || ['$(inherited)']
        flags = Array(flags) + ['-ObjC']
        config.build_settings['OTHER_LDFLAGS'] = flags.uniq

        # 统一 iOS 最低版本（如需强制覆盖可直接赋值）
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
      end
    end
  end
end
